package com.tanggh.tag;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.Component;
import org.apache.struts2.views.jsp.ui.AbstractUITag;

import com.opensymphony.xwork2.util.ValueStack;

public class HeadTag extends AbstractUITag {
	
//	private String title;
//	private String description;
//	private String keywords;
	
	private String title="36挂靠";
	private String description="提供建筑类考试指南、成绩查询，建筑培训等服务，是建筑人才、企业与中介的信息交流平台。建造师挂靠、资质代办请咨询";
	private String keywords="建造师,一级建造师,二级建造师,建造师挂靠,一级建造师挂靠,二级建造师挂靠,建造师报考指南,建造师成绩查询,建筑培训";

	@Override
	public Component getBean(ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
		return new HeadBean(stack, request, response);
	}

	@Override
	protected void populateParams() {
		super.populateParams();
		HeadBean bean = (HeadBean)component;
		bean.setTitle(title);
		bean.setKeywords(keywords);
		bean.setDescription(description);
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}
	
	
	
}
